//
//  VERealNameImageTableViewCell.m
//  VEMoneyPorject
//
//  Created by BlueWind on 2018/9/27.
//  Copyright © 2018年 陈建. All rights reserved.
//

#import "VERealNameImageTableViewCell.h"

@implementation VERealNameImageTableViewCell

/** 返回循环利用的cell */
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self= [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self loadDefaultSetting];
    }
    return self;
}

/** 加载默认UI元素和需要的数据 */
- (void)loadDefaultSetting {
    
    self.imageViews = [UIImageView new];
    [self.contentView addSubview:self.imageViews];
    [self.imageViews mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.contentView).offset(GAP8);
        make.centerX.equalTo(self.contentView.mas_centerX);
        make.size.mas_equalTo(CGSizeMake(250, 165));
    }];
    self.imageViews.contentMode = UIViewContentModeScaleAspectFill;
    self.imageViews.clipsToBounds = YES;
//    self.remandLab = [UILabel new];
//    [self.imageView addSubview:self.remandLab];
//    [self.remandLab mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.centerX.equalTo(self.imageViews);
//        make.top.equalTo(self.imageViews.mas_centerY).offset(GAP15);
//    }];
//    self.remandLab.font = kFont(18);
//    self.remandLab.textColor = [UIColor colorWithHexString:kDetailTextBlackColor];
    
    UILabel *lab = [UILabel new];
    [self.contentView addSubview:lab];
    [lab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.imageViews.mas_bottom).offset(GAP8);
        make.centerX.equalTo(self.imageViews);
    }];
    lab.font = kFont(14);
    lab.textColor = [UIColor colorWithHexString:kDetailTextGrayBlackColor];
    lab.text = @"支持 JPEG、PNG 格式照片大小不超过5M";
    
    
}

@end
